﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Profile;
using System.Web.Security;

namespace dotnethost.Models
{
    public class UserProfile:ProfileBase
    {
        private MembershipUser _user = Membership.GetUser();
        static public UserProfile CurrentUserProfile
        {
            get
            {
                return (UserProfile)
                       (ProfileBase.Create(Membership.GetUser().UserName));
            }
        }

        public string FullName
        {
            get { return ((string)(GetPropertyValue("FullName"))); }
            set { SetPropertyValue("FullName",value); }
        }

        public string Email
        {
            get { return _user.Email; }
            set { _user.Email = value; }
        }



        // add additional properties here
    }
}